﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类OUTLOOK_CHASISS_SUBITEM
     ///</summary>
     public class OUTLOOK_CHASISS_SUBITEM
     {
         private int __ID=0 ;
         private int? __MID=null ;
         private string __MNAME=string.Empty ;
         private int? __SUBID=null ;
         private string __SNAME=string.Empty ;
         private string __JUDGECLASS=string.Empty ;
         private string __APPLYCLASS=string.Empty ;
         private int? __MITEMID=null ;
         private string __MITEMNAME=string.Empty ;
         private int? __IsItemValid=null ;
         private int? __JSDJPDNUM=null ;
         private int? __JSDJPDType=null ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public OUTLOOK_CHASISS_SUBITEM()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("MID",false);
             this.__Changed.Add("MNAME",false);
             this.__Changed.Add("SUBID",false);
             this.__Changed.Add("SNAME",false);
             this.__Changed.Add("JUDGECLASS",false);
             this.__Changed.Add("APPLYCLASS",false);
             this.__Changed.Add("MITEMID",false);
             this.__Changed.Add("MITEMNAME",false);
             this.__Changed.Add("IsItemValid",false);
             this.__Changed.Add("JSDJPDNUM",false);
             this.__Changed.Add("JSDJPDType",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__MID =null;
             this.__MNAME =string.Empty;
             this.__SUBID =null;
             this.__SNAME =string.Empty;
             this.__JUDGECLASS =string.Empty;
             this.__APPLYCLASS =string.Empty;
             this.__MITEMID =null;
             this.__MITEMNAME =string.Empty;
             this.__IsItemValid =null;
             this.__JSDJPDNUM =null;
             this.__JSDJPDType =null;
             this.__Changed["ID"] = false;
             this.__Changed["MID"] = false;
             this.__Changed["MNAME"] = false;
             this.__Changed["SUBID"] = false;
             this.__Changed["SNAME"] = false;
             this.__Changed["JUDGECLASS"] = false;
             this.__Changed["APPLYCLASS"] = false;
             this.__Changed["MITEMID"] = false;
             this.__Changed["MITEMNAME"] = false;
             this.__Changed["IsItemValid"] = false;
             this.__Changed["JSDJPDNUM"] = false;
             this.__Changed["JSDJPDType"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[MID]的数据
         /// </summary>
         public int? MID
         {
              set{ __MID = value; __Changed["MID"] = true;}
              get{return __MID;}
         }
         /// <summary>
         ///设置或获取类中的[MNAME]的数据
         /// </summary>
         public string MNAME
         {
              set{ __MNAME = value.Replace("'","’"); __Changed["MNAME"] = true;}
              get{return __MNAME;}
         }
         /// <summary>
         ///设置或获取类中的[SUBID]的数据
         /// </summary>
         public int? SUBID
         {
              set{ __SUBID = value; __Changed["SUBID"] = true;}
              get{return __SUBID;}
         }
         /// <summary>
         ///设置或获取类中的[SNAME]的数据
         /// </summary>
         public string SNAME
         {
              set{ __SNAME = value.Replace("'","’"); __Changed["SNAME"] = true;}
              get{return __SNAME;}
         }
         /// <summary>
         ///设置或获取类中的[JUDGECLASS]的数据
         /// </summary>
         public string JUDGECLASS
         {
              set{ __JUDGECLASS = value.Replace("'","’"); __Changed["JUDGECLASS"] = true;}
              get{return __JUDGECLASS;}
         }
         /// <summary>
         ///设置或获取类中的[APPLYCLASS]的数据
         /// </summary>
         public string APPLYCLASS
         {
              set{ __APPLYCLASS = value.Replace("'","’"); __Changed["APPLYCLASS"] = true;}
              get{return __APPLYCLASS;}
         }
         /// <summary>
         ///设置或获取类中的[MITEMID]的数据
         /// </summary>
         public int? MITEMID
         {
              set{ __MITEMID = value; __Changed["MITEMID"] = true;}
              get{return __MITEMID;}
         }
         /// <summary>
         ///设置或获取类中的[MITEMNAME]的数据
         /// </summary>
         public string MITEMNAME
         {
              set{ __MITEMNAME = value.Replace("'","’"); __Changed["MITEMNAME"] = true;}
              get{return __MITEMNAME;}
         }
         /// <summary>
         ///设置或获取类中的[IsItemValid]的数据
         /// </summary>
         public int? IsItemValid
         {
              set{ __IsItemValid = value; __Changed["IsItemValid"] = true;}
              get{return __IsItemValid;}
         }
         /// <summary>
         ///设置或获取类中的[JSDJPDNUM]的数据
         /// </summary>
         public int? JSDJPDNUM
         {
              set{ __JSDJPDNUM = value; __Changed["JSDJPDNUM"] = true;}
              get{return __JSDJPDNUM;}
         }
         /// <summary>
         ///设置或获取类中的[JSDJPDType]的数据
         /// </summary>
         public int? JSDJPDType
         {
              set{ __JSDJPDType = value; __Changed["JSDJPDType"] = true;}
              get{return __JSDJPDType;}
         }
    }
}
